/**
 * Created by zenglin on 2017/1/21.
 */
import java.util.Scanner;
public class SalesTax {
    public static void main(String[] args){
        Scanner input = new Scanner(System.in);

        System.out.println("Enter purchase amount: ");
        double purchaseAmount = input.nextDouble();

        double tax = purchaseAmount * 0.06;
        System.out.println("Sales tax is "+ (int)(tax * 100)/100.0);
        //小数点后的位数转换情况,1185/100.0 非有效位的0会被省略
    }
}
